﻿
namespace Pap.Data
{
    /// <summary>
    /// 
    /// </summary>
    public partial class Image : IImage
    {
        #region IImage Members

        /// <summary>
        /// Gets or sets the image data.
        /// </summary>
        /// <value>
        /// The image data.
        /// </value>
        byte[] IImage.ImageData
        {
            get { return ImageData.ToArray(); }
            set { ImageData = new System.Data.Linq.Binary(value); }
        }

        /// <summary>
        /// Gets the type of the image.
        /// </summary>
        /// <value>
        /// The type of the image.
        /// </value>
        ILookUpEntity IImage.ImageType
        {
            get
            {
                return this.ImageType as ILookUpEntity;
            }
        }


        #endregion
    }
}
